﻿using System;
using NUnit.Framework;
using EzDesk.Apps.Model.Attendance;

namespace EzDesk.UnitTest
{
    [TestFixture]
    public class DateTimeExtensionFixture
    {
        [Test]
        public void Test_ToManhours()
        {
            var startDate = DateTime.Today.AddHours(9).AddMinutes(5);
            var endDate = DateTime.Today.AddHours(17).AddMinutes(50);
            var dd = (endDate - startDate).TotalMinutes;
            var result = ((int)dd).ToManhours();
            Assert.AreEqual(85,result);
            return;
        }
    }
}
